//
//  AFNetworkManager+Extension.swift
//  MyNews
//
//  Created by DF-Mac on 16/12/7.
//  Copyright © 2016年 DF-Mac. All rights reserved.
//

import Foundation

extension AFNetworkManager{

    
    func getSocialNewsList(completion:(_ list: [[String:AnyObject]]?, _ isSuccess:Bool) -> ()) {
        
        let paramters = ["key":"6bcc592cde9eec424cb2cb17d4c82ced" as AnyObject,"num":(10 as AnyObject)] as [String : AnyObject]
        
        request(method: .GET, URLString: "http://api.tianapi.com/social", parameters: paramters) { (any, true) in
            print("19+\(any)")
        }
        
//        request(URLString: "http://api.tianapi.com/social", parameters: paramters as [String : Any]) { (json, isSuccess) in
//            print(json)
//            let result = json?["newslist"] as? [[String:Any]]
//        }
        
    }
}
